# -*- coding: cp932 -*-
'''
Created on 2012/04/27

@author: rusyou
'''
from prototype.framework.Manager import Manager
from prototype.UnderlinePen import UnderlinePen
from prototype.MassageBox import MessageBox

if __name__ == '__main__':
    manager = Manager()
    upen = UnderlinePen("~")
    mbox = MessageBox("*")
    sbox = MessageBox("/")

    manager.register("strong message", upen)
    manager.register("warning box", mbox)
    manager.register("slash box", sbox)

    p1 = manager.create("strong message")
    p1.use("Hello, world.")

    p2 = manager.create("warning box")
    p2.use("Hello, world.")

    p3 = manager.create("slash box")
    p3.use("Hello, world.")